package com.eastfair.messagecenter.api;


import com.eastfair.core.base.R;
import com.eastfair.messagecenter.dto.InnerSendDTO;
import com.eastfair.messagecenter.dto.SmsSendDTO;
import com.eastfair.messagecenter.hystrix.MsgApiFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;
import java.util.Map;

/**
 * auth feign接口
 *
 * @Author ligang
 * @Date 2021/7/16 16:41
 */
@FeignClient(name = "messagecenter/msg", fallback = MsgApiFallback.class)
public interface MsgServiceFeign {

    /**
     * 发送消息
     *
     * @return
     */
    @ApiOperation(value = "发送短信消息", notes = "发送消息")
    @PostMapping("/sendSmsMsg")
    R sendSmsMsg(@RequestBody SmsSendDTO smsSendDTO);

    /**
     * 发送站内信
     *
     * @return
     */
    @ApiOperation(value = "发送站内信", notes = "发送站内信")
    @PostMapping("/sendInnerInMsg")
    R sendInnerInMsg(@RequestBody InnerSendDTO innerSendDTO);
}
